package com.hugoo.form.slt;

import com.hugoo.core.db.ResultPack;
import com.hugoo.core.db.rp.TxtResultPack;
import com.hugoo.rpt.ExpPageInfo;

/**
 *
 * @author Lovelock.Chan
 */
public class TxtExpAction extends ExpAction implements ExpPageInfo {

    boolean haveTitle = true, haveEnd = true;

    public TxtExpAction(String dbl, String sql, String fileName, String col) {
        super(dbl, sql, fileName, col);
    }

    public TxtExpAction(String dbl, String sql, String fileName, String col, boolean haveTitle, boolean haveEnd) {
        super(dbl, sql, fileName, col);
        this.haveTitle = haveTitle;
        this.haveEnd = haveEnd;
    }

    @Override
    public boolean isExpTitle() {
        return haveTitle;
    }

    @Override
    public boolean haveEnd() {
        return haveEnd;
    }

    @Override
    public ResultPack getResultPack() {
        return new TxtResultPack(this, col);
    }
}
